package com.example.forum.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Date;

/*
    一个帖子的实体类
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class DiscussPost {
    private Integer id;
    private String  userId;
    private String title;
    private String content;
    private Integer type;
    private Integer status;
    private Date createTime;
    private Integer commentCount; //评论次数
    private double score;
}
